package com.xsd.vistor.kpiDemo;

/**
 * @Description: 关注工程师代码量和经理的新产品数量
 * @Author: zhoufuzong
 * @Created: 2021-03-11 20:56:03
 * @Version: 1.1.0
 */

public class CTO extends Vistor {
    @Override
    public void visit(Manager engineer) {
        System.out.println(engineer.name+": 新产品数量为"+engineer.getProducts()
        +"\t ");
    }

    @Override
    public void visit(Engineer engineer) {
        System.out.println(engineer.name+": 代码量为"+engineer.getCodeLines()+"\t");
    }
}
